home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / AIncludes / PaletteEqu.a < prev    next >
Encoding:
Text File  |  1989-10-13  |  1.7 KB  |  71 lines  |  [TEXT/MPS ]

  1. ; Version: 2.64
  2. ; Created: Saturday, September 16, 1989 at 4:29:05 PM
  3. ;
  4. ; File: PaletteEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1987-1988
  8. ; All Rights Reserved
  9. ;
  10. ;___________________________________________________________________________
  11.  
  12. ; Palette Manager equates
  13.  
  14. ; Usage constants
  15. pmCourteous     EQU         $0000
  16. pmDithered        EQU         $0001
  17. pmTolerant        EQU         $0002
  18. pmAnimated        EQU         $0004
  19. pmExplicit        EQU         $0008
  20. pmInhibitG2     EQU         $0100
  21. pmInhibitC2     EQU         $0200
  22. pmInhibitG4     EQU         $0400
  23. pmInhibitC4     EQU         $0800
  24. pmInhibitG8     EQU         $1000
  25. pmInhibitC8     EQU         $2000
  26.  
  27. ; ColorInfo structure
  28.  
  29. ciRGB            EQU         $0000                    ; RGBColor [short] * 3
  30. ciUsage         EQU         $0006                    ; usage [short]
  31. ciTolerance     EQU         $0008                    ; tolerance value [short]
  32. ciFlags         EQU         $000A                    ; private [short]
  33. ciPrivate        EQU         $000C                    ; private [long]
  34. ciSize            EQU         $0010                    ; size of the ColorInfo data structure
  35.  
  36. ; Palette structure
  37.  
  38. pmEntries        EQU         $0000                    ; entries in pmTable [short]
  39. pmWindow        EQU         $0002                    ; parent window [long]
  40. pmPrivate        EQU         $0006                    ; private [short]
  41. pmDevices        EQU         $0008                    ; private [long]
  42. pmSeeds         EQU         $000C                    ; private [long]
  43. pmInfo            EQU         $0010                    ; ColorInfo's [ciSize] * pmEntries
  44. pmHdrSize        EQU         $0010                    ; size of Palette header
  45. ; Palette resource structure
  46. ;
  47. plttEntries     EQU         $0000                    ; entries in palette resource [short]
  48. plltUpdates     EQU         $0002                    ; value passed to SetPalette [short]
  49. _PMgrDispatch    OPWORD        $AAA2
  50.  
  51.                 MACRO
  52.                 _Entry2Index
  53.                 MOVEQ        #0,D0
  54.                 _PMgrDispatch
  55.                 ENDM
  56.  
  57.  
  58.                 MACRO
  59.                 _RestoreDeviceClut
  60.                 MOVEQ        #2,D0
  61.                 _PMgrDispatch
  62.                 ENDM
  63.  
  64.  
  65.                 MACRO
  66.                 _ResizePalette
  67.                 MOVEQ        #3,D0
  68.                 _PMgrDispatch
  69.                 ENDM
  70.  
  71.